home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: sending semantic events to embedded parts
- Sent: 3/17/96 9:43 PM
- Received: 3/18/96 7:01 AM
- From: Greg Friedman, friedman@cognosis.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >3/17/96
- >
- >I have a part, that all user interface is sent to myself via Semantic events.
- >When I am the root part everything works great. However when I'm embedded,
- >only the events that do not have an object specifier associated with them,
- >come through. I use the method CreatePartAddrDesc to create the target param
- >in the CreateEvent method.
- >
- >I found the method CreatePartObjSpec, but it says it is not to be used for
- >recording. The whole reason for factoring and dispatching semantic events was
- >to be recordable.
- >
- >How do I target my part when I am embedded?
-
- Ken,
-
- You should use CreatePartAddrDesc. I suspect you are calling
- CreatePartAddrDesc with a descriptor that describes the target object, but
- doesn't describe the part. You need to add part specifier information to
- the descriptor before calling CreatePartAddrDesc. Use either
- EmbeddedFrameSpec or create an object specifier that describes your part by
- the persistent id of its primary frame. Once you've got the complete object
- specifier, you should be able to call CreatePartAddrDesc. If you think you
- are already doing this, I suggest you post your code to the OpenDoc
- newsgroup or interest list and see if someone there has an idea about why
- it isn't working.
-
- Good luck,
-
- Greg.
-
-
- ___________________________________________________________
- Greg Friedman ODF Engineering Apple Computer
-
-